﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity;
using DAO;

namespace BO
{
    public class SaleBO
    {
        /// <summary>
        /// Lay danh sach sale dua vao list
        /// </summary>
        public List<SaleInfoEntity> LoadSale()
        {
            SaleDAO sDAO = new SaleDAO();
            List<SaleInfoEntity> lst = sDAO.LoadSale();
            return lst;
        }

        /// <summary>
        /// Lay danh sach sale dua ngoai tru sale duoc chon
        /// </summary>
        public List<SaleInfoEntity> LoadSale(string SaleName)
        {
            SaleDAO sDAO = new SaleDAO();
            List<SaleInfoEntity> lst = sDAO.LoadSale(SaleName);
            return lst;
        }
    }
}
